package cool.gaogao.aop.user;

/**
 * @author 高山青
 * @Date 2021/12/31  -   10:20
 */

import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Before;
import org.springframework.core.annotation.Order;
import org.springframework.stereotype.Component;

/**
 * 被增强类2
 */
@Component
@Aspect
@Order(10)
public class UserProxyTwo {
	@Before(value = "execution(* cool.gaogao.aop.user.User.add(..))")
	public void before(){
	System.out.println("优先级比较低的增强");
	}
}
